package naga.x.net.impl.pomelo.packet;

import naga.x.net.impl.pomelo.PomeloPacket;

/**
 * 二进制包<br/>
 * pomelo message解码时如果没找到对应的bodyType则将body封装成ByteArrayPacket传递下去
 * @author yang.li
 *
 */
public class ByteArrayPacket extends PomeloPacket {

	private byte[] buf;
	
	public ByteArrayPacket(byte[] buf) {
		this.buf = buf;
	}
	
	public byte[] toByteArray() {
		return buf;
	}
	
}
